package org.inspiration.dudu.common.constant;

public class Constant {
    public static final String ARTICLE_TYPE = "article";
    public static final String QUESTION_TYPE = "question";
    public static final String ANSWER_TYPE = "answer";
    public static final String COMMENT_TYPE = "comment";

    public static final String SUCCESS = "操作成功";
    public static final String FAILURE = "操作失败";
    public static final String SYSTEM_UNKNOWN_EXCEPTION = "系统未知异常";
    //JWT
    public static final String JWT_INVALID = "JWT验证失败";

    //File
    public static final String FILE_IS_EMPTY = "文件为空";
    public static final String FILE_NOT_FOUND = "文件不存在";

    //Result-Code
    public static final Integer SERVER_ERROR_CODE = 500;
    public static final Integer UNAUTHORIZED_ERROR_CODE = 401;
    public static final Integer SUCCESS_CODE = 200;
    public static final Integer NOT_FOUND_CODE = 404;

    //User
    public static final String USER_NOT_FOUND = "该用户不存在";
    public static final String USER_HAS_EXISTED = "该用户已存在";
    public static final String USER_PASSWORD_INCORRECT = "用户密码不正确";
    public static final String USER_LOGIN_ERROR = "用户名或密码错误";
    public static final String USER_USERNAME_OR_PASSWORD_IS_BLANK = "用户名或密码为空";
    public static final String USER_NOT_AUTHENTICATED = "用户未认证";

    public static final String CONTENT_TYPE_ERROR = "内容类型错误";
}
